<template>
  <div>
    <MyButton  @change="chen" />
    {{ msg }}
  </div>
</template>

<script>
import MyButton from "./B.vue"
export default {
  components: {
    MyButton
  },
  data() {
    return {
      msg: '',
    };
  },
  methods: {
  //接
    chen(value){
      this.msg = value
    }
  },
}
</script>

<style lang="less" scoped>

</style>
